export { default as preloadResources } from './preload';
export { default as memory } from './memory';

export function getRandomNumber(exclude: number[]): number {
  const availableNumbers: number[] = [];

  // 创建一个不包含 exclude 中数字的数组
  for (let i = 0; i <= 24; i++) {
    if (!exclude.includes(i)) {
        availableNumbers.push(i);
    }
  }

  // 从可用数字中随机选择一个
  const randomIndex = Math.floor(Math.random() * availableNumbers.length);
  return availableNumbers[randomIndex];
}